﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PubSubLite.Messaging
{
    public class MessageReceivedEventArgs : EventArgs
    {
        public MessageReceivedEventArgs(IMessageBase message)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message cannot be null");
            }
            Message = message;
        }

        public IMessageBase Message
        {
            get;
            private set;
        }
    }
}
